package com.tyl.service.impl;

import com.tyl.entity.Admin;
import com.tyl.entity.Role;
import com.tyl.mapper.AdminMapper;
import com.tyl.service.IAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.minidev.json.writer.BeansMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 汤云龙
 * @since 2022-03-17
 */
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements IAdminService {

    @Override
    public List<Role> selectByAdminIdAndRoleId(int id) {
        return baseMapper.selectByAdminIdAndRoleId(id);
    }
}
